import request from '@/utils/request'

// 查询wirecut列表
export function listWirecut(query) {
  return request({
    url: '/wirecut/wirecut/list',
    method: 'get',
    params: query
  })
}

// 查询wirecut详细
export function getWirecut(id) {
  return request({
    url: '/wirecut/wirecut/' + id,
    method: 'get'
  })
}

// 新增wirecut
export function addWirecut(data) {
  return request({
    url: '/wirecut/wirecut',
    method: 'post',
    data: data
  })
}

// 修改wirecut
export function updateWirecut(data) {
  return request({
    url: '/wirecut/wirecut',
    method: 'put',
    data: data
  })
}

// 删除wirecut
export function delWirecut(id) {
  return request({
    url: '/wirecut/wirecut/' + id,
    method: 'delete'
  })
}
